package org.example.dataStructure.stack;

public class TestStack {
    public static void main(String[] args) {
        MyStack<String> stack = new MyStack<>();
        stack.push("1");
        stack.push("2");
        stack.push("3");
        stack.push("4");
        stack.push("5");
        Integer p = stack.size();
        for (Integer integer = 0; integer < p; integer++) {
            System.out.println("出栈成功: "+stack.pop());
        }
    }
}
